﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NineDishes.Win8.Common
{
    public static class I18nUtil
    {
        public static string GetCurrentLangPrefix()
        {
            string lang = Windows.System.UserProfile.GlobalizationPreferences.Languages[0];

            if (lang.StartsWith("zh"))
            {
                return "zh";
                //return "en";
            }
            else {
                return "en";
            }
        }
    }
}
